/*
 * @Author: LBH 1336709799@qq.com
 * @Date: 2025-02-06 17:34:31
 * @LastEditors: LBH 1336709799@qq.com
 * @LastEditTime: 2025-02-06 17:44:00
 * @FilePath: \jike\src\apis\user.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 用户相关的所有请求

const { request } = require("@/utils");

// 1.登录请求
export function loginAPI(formData){
    return request({
        url:'/authorizations',
        method:'POST',
        data: formData
    })
}

// 2.获取用户信息
export function getProfileAPI(){
    return request({
        url:'/user/profile',
        method:'GET',
    })
}
